package S04;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;

public class F04 {

	public static void main(String[] args) {
		LocalDate begin = LocalDate.parse("2025-02-17");//开学第一周周一的日期
		LocalDateTime now = LocalDateTime.now();
		DateTimeFormatter fmt = DateTimeFormatter.ofPattern("北京时间：yyyy年MM月dd日 HH时mm分ss秒 ");
		System.out.print(now.format(fmt));
		int week = now.getDayOfWeek().getValue();
		System.out.println("星期"+"一二三四五六日".charAt(week-1));
		System.out.println("今天是本学期的第"+(1+begin.until(now, ChronoUnit.WEEKS))+"周");
	}

}
